package com.park.dao.resource;

import java.util.List;

import com.park.client.model.resource.ResourceDownloadRecordModel;

public interface ResourceDownloadRecordMapper {

    int insertSelective(ResourceDownloadRecordModel record);
    
    /**
     * 查询该用户是否已经下载该资源
     * @param record
     * @return
     */
	 ResourceDownloadRecordModel selectByObject(ResourceDownloadRecordModel record);
	 
	 /**
	  * 该用户下载的所有资源
	  * @param userId
	  * @return
	  */
	 List<ResourceDownloadRecordModel> selectByUserId(Long userId);

}